class SamException{
public static void main(String [] args)
{
int x = 5,y = 5,z = 0;
try
{
int i = x/y;
System.out.println("Value of I is = " +i);
int j = x/z;
System.out.println("value of J is =  "+j);
}
catch(ArithmeticException ae)
{
System.out.println("arithmetic exception");
}
}
}
